Release 10.1A: OpenEdge Development:
AppBuilder
AppBuilder create (adeuib/_uib_crt.p)
Use the
adeuib/_uib_crt.pprocedure to create objects in AppBuilder. You can create under program control the objects found in the custom object files. TheTYPES,ARGUMENTS, andCUSTOMTYPESare the same as those defined in the custom object files. This acts just as if you choose a button from the Object Palette and insert it into a window or frame:
Input parameters
The
adeuib/_uib_crt.pprocedure takes the following input parameters:pi_parentThe context ID of the parent of the object to create. If this is unknown (
?), the parent is assumed to be the current frame. If there is no current frame, then the current window is assumed.pc_typeThe type of object to create (for example,
“BUTTON”or“SmartObject”).pc_customThe name of the custom object type (for example,
“OK Button”). If this is unknown (?), the“&Default”object is created. This is of the form:
Special cases of pc_custom
Here are some special cases of the
pc_customparameter:"Custom:name"The name of the custom object defined in custom files. This draws a Next button:
"SmartObject:object-file"The name of a SmartObject to load. For example:
"SPECIAL:attributes-values"This is similar to creating a new custom object file entry temporarily. The attributes and values are parsed the same way as entries in the custom object file. Blank lines are ignored. You must separate lines with a carriage return (that is,
CHR(10)). For example:
pd_ROWThe
ROWto create the object.pd_COLUMNThe
COLUMNto create the object.pd_HEIGHTThe
HEIGHTof the object in characters; if unknown (?), the default height is used.pd_WIDTHThe
WIDTHof the object in characters; if unknown (?), the default width is used.Output parameter
The
adeuib/_uib_crt.pprocedure uses the following output parameter:pi_contextThe context ID of the object created. If the creation fails, this is unknown (
?). You can use this value as the object context ID for the companion programs, which areadeuib/_accsect.p,adeuib/_uibinfo.p, andadeuib/_uib_del.p.Return values
The
adeuib/_uib_crt.pprocedure returns:"Error"If
pi_contextdoes not point to a valid object.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |